<?php
    $lang = $_GET['lang'];
    
    function top_logo() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/top_logo_e.gif'/>";
        } else {
            echo "<img src='images/top_logo.gif'/>";
        }
    }
    
    function bottom_logo() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/bottom_logo_e.gif'/>";
        } else {
            echo "<img src='images/bottom_logo.gif'/>";
        }
    }
    
    function s_title001() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/s_title001_e.gif'/>";
        } else {
            echo "<img src='images/s_title001.gif'/>";
        }
    }
    
    function s_title002() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/s_title002_e.gif'/>";
        } else {
            echo "<img src='images/s_title002.gif'/>";
        }
    }
    
    function s_title003() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/s_title003_e.gif'/>";
        } else {
            echo "<img src='images/s_title003.gif'/>";
        }
    }
    
    function s_title004() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/s_title004_e.gif'/>";
        } else {
            echo "<img src='images/s_title004.gif'/>";
        }
    }
    
    function s_title005() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/s_title005_e.gif'/>";
        } else {
            echo "<img src='images/s_title005.gif'/>";
        }
    }

    function company_address() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<p>27-10, Sanbon-gil, Gunpo-si, Gyeonggi-do Tel. 82-70-4202-2898 Fax. 82-31-477-2898 Mail. apcoltd@naver.com<br/>"
                  ."Copyright © ACE POWER CO., LTD All rights reserved.</p>";
        } else {
            echo "<p>경기도 군포시 산본로 48번길 27-10(당정동) Tel. 070-4202-2898 Fax. 031-477-2898 Mail. apcoltd@naver.com<br/>"
                  ."Copyright © ACE POWER CO., LTD All rights reserved.</p>";
        }
    }
    
    function o_counsel() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/o_counsel_e.gif'/>";
        } else {
            echo "<img src='images/o_counsel.gif'/>";
        }
    }
    
    function map() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/map_e.gif'/>";
        } else {
            echo "<img src='images/map.gif'/>";
        }
    }
    
    function c_sale() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo "<img src='images/c_sale_e.gif'/>";
        } else {
            echo "<img src='images/c_sale.gif'/>";
        }
    }
    
    function menu_item1() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="company.php?lang=en">Company</a>';
        } else {
            echo '<a href="company.php">회사 소개</a>';
        }
    }
    
    function menu_item2() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="business.php?lang=en">Business</a>';
        } else {
            echo '<a href="business.php">사업 분야</a>';
        }
    }
    
    function menu_item3() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="product.php?lang=en">Product</a>';
        } else {
            echo '<a href="product.php">제품 소개</a>';
        }
    }
    
    function menu_item4() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="contactus.php?lang=en">Contact Us</a>';
        } else {
            echo '<a href="contactus.php">견적 문의</a>';
        }
    }
    
    function menu_item5() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="community.php?lang=en">Community</a>';
        } else {
            echo '<a href="community.php">커뮤니티</a>';
        }
    }
    
    function change_lang() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="index.php">Korean</a>';
        } else {
            echo '<a href="index.php?lang=en">English</a>';
        }
    }
    
    function ban001() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<img src="images/ban001_e.gif"/>';
        } else {
            echo '<img src="images/ban001.gif"/>';
        }
    }
    
    function ban002() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<img src="images/ban002_e.gif"/>';
        } else {
            echo '<img src="images/ban002.gif"/>';
        }
    }
    
    function ban003() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<img src="images/ban003_e.gif"/>';
        } else {
            echo '<img src="images/ban003.gif"/>';
        }
    }
    
    function ban004() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<img src="images/ban004_e.gif"/>';
        } else {
            echo '<img src="images/ban004.gif"/>';
        }
    }
    
    function menu_item1_submenu() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a>Greeting</a><a>Business Philosophy</a><a>History</a><a>Organization</a><a>The certificate</a><a>Location</a>';
        } else {
            echo '<a>인사말</a><a>경영 이념</a><a>연혁</a><a>조직도</a><a>기술/인증</a><a>찾아오시는 길</a>';
        }   
    }
    
    function menu_item2_submenu() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="#">LED Lighting and LED Road signs</a>'
            .'<a href="#">Solar Energy</a>'
            .'<a href="#">ESCO Business</a>'
            .'<a href="#">Video correction equipment</a>';
        } else {
            echo '<a href="#">LED Lighting 및 도로 표지판</a>'
            .'<a href="#">SOLAR ENERGY</a>'
            .'<a href="#">ESCO 사업</a>'
            .'<a href="#">영상정보기기</a>';
        }   
    }

    function menu_item3_submenu() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a href="?pid=0">LED Lighting and LED Road signs</a>'
            .'<a href="#">Solar Energy</a>'
            .'<a href="#">Video correction equipment</a>';
        } else {
            echo '<a href="?pid=0">LED Lighting 및 도로 표지판</a>'
            .'<a href="#">SOLAR ENERGY</a>'
            .'<a href="#">영상정보기기</a>';
        }   
    }
    
    function menu_item5_submenu() {
        if($_GET['lang'] && $_GET['lang'] == 'en') {
            echo '<a onclick="javascript:showNotice();">Notice</a>'
                .'<a onclick="javascript:showQnA();">Q &amp; A</a>'
                .'<a onclick="javascript:showJobinfo();">Jobs</a>';
        } else {
            echo '<a onclick="javascript:showNotice();">공지사항</a>'
                .'<a onclick="javascript:showQnA();">Q &amp; A</a>'
                .'<a onclick="javascript:showJobinfo();">채용안내</a>';
        }   
    }
    
    function get_page() {
        $pid = parsInt($_GET['pid']);
        
        switch($pid){
            case 1: include 'product/light.php'; break;
        }
    }
    
?>